NULL =

FILES = \
  index.php \
  admin_opt.php \
  backup.php \
  check.php \
  gest_file.php \
  gest_msg_pub.php \
  gest_msg_scad.php \
  gestione_msg.php \
  ins_msg.php \
  login.php \
  pubblicati.php \
  ricerca_msg.php \
  rss.php \
  scaduti.php \
  upfile.php \
  user_opt.php \
  utenti.php \
  write_msg.php \
  $(NULL)

DIRS = \
  backups \
  images \
  include \
  upload \
  $(NULL)

SERVER = webdata@server2.sti.uniurb.it:/var/www/bacheca_info_appl_liv1

sync: $(FILES) $(DIRS)
	rsync --delete-excluded --exclude=.svn -r -v $^ $(SERVER)

%.download:
	rsync -r -v $(SERVER)/$(@:%.download=%) .

%.upload: %
	rsync --delete-excluded --exclude=.svn -r -v $^ $(SERVER)

